DevJourney

Python/Basics/Circle/Area and perimeter of circle.py

r=int(input("Enter radius of circle: "))
pi=22/7
p=2*pi*r
a=pi*r**2
print(f'The circle having radius {r} has perimeter {p} and area {a}')
View on GitHub